package com.it.gw.modules.user.activity

import android.content.Intent
import android.net.Uri
import com.it.gw.R
import com.it.gw.base.BaseActivity
import com.it.gw.databinding.ActivityAboutBinding

class AboutActivity : BaseActivity<ActivityAboutBinding>() {
    override fun initObserver() {

    }
    val phoneNumber = "18592021074" // 你要拨打的电话号码
    override fun initListener() {
        binding.ll3.setOnClickListener {

            val intent = Intent(Intent.ACTION_DIAL).apply {
                data = Uri.parse("tel:$phoneNumber")
            }
            startActivity(intent)
        }

    }

    override fun initData() {

    }

    override fun onResume() {
        super.onResume()

    }

    override fun initView() {
        setTitle(
            title = R.string.str_about,
            isBack = true

        )
        binding.phone.setText(phoneNumber)
    }

    override fun setContentView() {
        binding = ActivityAboutBinding.inflate(layoutInflater)
        setContentView(binding.root)
    }
}